<!DOCTYPE html>
<html>
	<head>
		<meta name="layout" content="kickstart">
		<title>Mr-Rights|Profilo|Immagine</title>
		
	</head>
	<body>
	
	<div id="ribbon">
				
								<!-- breadcrumb -->
		<ol class="breadcrumb">
			<li>Profilo</li><li>Gestione Avatar</li>
		</ol>
				<!-- end breadcrumb -->				
			
	</div>
	
	<div id="content">
	
	<div class="row">
		<div class="col-xs-12 col-sm-7 col-md-7 col-lg-7">
			<h1 class="page-title txt-color-blueDark">
			<i class="fa-fw fa fa-user"></i><sec:loggedInUserInfo field="username"/><span>&nbsp;>&nbsp;</span><span>Avatar</span></h1>
		</div>
					
	</div>
	
	<div class="row">
							<br/><br/>
								<div class="col-md-3 col-md-offset-2 ">
								<div class="form-group">
										<div class="input-group">
										<g:if test="${exdutility.sec_personal_email()}" >
											<avatar:gravatar size="250" email="${exdutility.sec_personal_email()}" cssClass="online" defaultGravatarUrl="${'https://lh5.googleusercontent.com/-b0-k99FZlyE/AAAAAAAAAAI/AAAAAAAAAAA/eu7opA4byxI/photo.jpg?sz=250'.encodeAsURL()}"/>
										</g:if>
										<g:else>
											<img  width="250" height="250" src="https://lh5.googleusercontent.com/-b0-k99FZlyE/AAAAAAAAAAI/AAAAAAAAAAA/eu7opA4byxI/photo.jpg?sz=200"  alt="me" class="online" />
										</g:else>
										</div>
								</div>
								
								</div>
								<div class="col-md-5 col-md-offset-1 ">
								<blockquote>
									<p>La foto viene automaticamente fornita da <a href="javascript:;" onclick="window.open('http://gravatar.com', 'newwindow', ' resizable, status, scrollbars=1, location');return false;">GRAVATAR</a>.</p>
								<g:if test="${exdutility.sec_personal_email()}" >	
									<p>Per cambiare il tuo avatar registrati gratuitamente presso <a href="javascript:;" onclick="window.open('http://gravatar.com', 'newwindow', ' resizable, status, scrollbars=1, location');return false;">GRAVATAR</a> con la seguente email:</p>
								  <small>${exdutility.sec_personal_email()}</small>
								</g:if>
								<g:else>
									<p>Per cambiare il tuo avatar :</p>
								  <small>inserisci nella sezione delle <a href="${createLink(action:'info')}">INFO</a> la tua email personale</small>
								  <small>registrati gratuitamente presso <a href="javascript:;" onclick="window.open('http://gravatar.com', 'newwindow', ' resizable, status, scrollbars=1, location');return false;">GRAVATAR</a> con la tua email personale</small>
								</g:else>
								</blockquote>
								</div>	
								</div>
								
</body>
</html>						
										